﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Random_Password
{
    public partial class Form1 : Form
    {
        Random_Password RP = new Random_Password();
        
        public Form1()
        {
            InitializeComponent();
            this.label6.Text = (this.numericUpDown1.Value + this.numericUpDown2.Value + this.numericUpDown3.Value + this.numericUpDown4.Value).ToString();          
           
        }


        private void button1_Click(object sender, EventArgs e)
        {
            RP.Set_Digit_len = (int)this.numericUpDown1.Value;
            RP.Set_Lower_len = (int)this.numericUpDown2.Value;
            RP.Set_Upper_len = (int)this.numericUpDown3.Value;
            RP.Set_Symbol_len = (int)this.numericUpDown4.Value;
            Password_Text.Text = RP.Get_Ran_string;
        }



        private void numericUpDown1_ValueChanged(object sender, EventArgs e)
        {
            this.label6.Text = (this.numericUpDown1.Value + this.numericUpDown2.Value + this.numericUpDown3.Value + this.numericUpDown4.Value).ToString();
        }

        private void numericUpDown2_ValueChanged(object sender, EventArgs e)
        {
            this.label6.Text = (this.numericUpDown1.Value + this.numericUpDown2.Value + this.numericUpDown3.Value + this.numericUpDown4.Value).ToString();
        }

        private void numericUpDown3_ValueChanged(object sender, EventArgs e)
        {
            this.label6.Text = (this.numericUpDown1.Value + this.numericUpDown2.Value + this.numericUpDown3.Value + this.numericUpDown4.Value).ToString();
        }

        private void numericUpDown4_ValueChanged(object sender, EventArgs e)
        {
            this.label6.Text = (this.numericUpDown1.Value + this.numericUpDown2.Value + this.numericUpDown3.Value + this.numericUpDown4.Value).ToString();
        }
    }
}
